package com.beyond.trace.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 扫码统计;
 * @author : zq
 * @date : 2023-1-6
 */
@ApiModel(value = "扫码统计",description = "")
@TableName("t_trace_scan_statistics")
public class TraceScanStatistics extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** id */
    @ApiModelProperty(name = "id",notes = "")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id ;
    /** 省份 */
    @ApiModelProperty(name = "省份",notes = "")
    private String province ;
    /** ip */
    @ApiModelProperty(name = "产品",notes = "")
    private String  product;
    /** 状态（1.正常 0.异常） */
    @ApiModelProperty(name = "状态（1.正常 0.异常）",notes = "")
    private int status ;
    /** 创建日期 */
    @ApiModelProperty(name = "创建日期",notes = "")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TraceScanStatistics{" +
                "id=" + id +
                ", province='" + province + '\'' +
                ", product='" + product + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}
